package com.study.service;

import com.study.dto.AuthDto;
import com.study.service.impl.AdminServiceImpl;
import org.junit.jupiter.api.Test;

/**
 * @PackgeName: com.study.service
 * @ClassName: AdminServiceTest
 * @Author: 严志祥
 * Date: 2022-05-11 18:56
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class AdminServiceTest {
    private AdminService as = new AdminServiceImpl();
    @Test
    public void test() throws Exception {
        try{
            AuthDto auth = as.login("admin","123123");
            System.out.println(auth);
        }catch (Exception e){
            e.printStackTrace();
        }

        try{
            AuthDto auth = as.login("adfafsdf","123");
            System.out.println(auth);
        }catch (Exception e){
            e.printStackTrace();
        }

        try{
            AuthDto auth = as.login("admin","121232141243");
            System.out.println(auth);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
